<form class="jc-search form-inline searchForm" action="{:U('Admin/Space/Spaces/indexOfficeRoom')}" method="post">
    <div class="form-group">
        <label>所属空间:</label>
        <select class="form-control" name="space_id" id="search_space_id">
            <option value="" <if condition="$space_id eq ''">selected</if>>全部</option>
            <foreach name="spaceList" item="space">
                <option value="{$space.id}" <if condition="$space_id eq $space['id']">selected</if>>{$space.name}</option>
            </foreach>
        </select>
    </div>
    <div class="form-group">
        <label>是否有效:</label>
        <select class="form-control" name="status">
            <option value="" <if condition="$status eq ''">selected</if>>全部</option>
            <option value="1" <if condition="$status eq '1'">selected</if>>启用</option>
            <option value="0" <if condition="$status eq '0'">selected</if>>禁用</option>
        </select>
    </div>

    <input class="btn" type="submit" value="搜索" />
</form>